<extend name="en_us:Public:base" />
<block name="title">
    <title>QRInn - stay guests</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/common_control.css?rev=bdf8875f9e52f651ec877dc7073586ed">
    <link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/jslib/bootstrap-daterangepicker/daterangepicker.css" />
    <link rel="stylesheet" type="text/css" media="all" href="__PUBLIC__/jslib/datepicker/css/foundation-datepicker.css" />
	<link rel="stylesheet" type="text/css" href="/Public/dist/Home/CustomerPage/customer.css?rev=727b6cde9988a3bc790c1b6f676eb7a7">
</block>
<block name="document">
    <div id="doc" class="container-above-md" data-today="{:date('Y-m-d')}">
        <include file="en_us:Public:Include_control_navbar" navbar-menu-customer="active" />
        <div id="doc-body" class="row">
            <include file="en_us:Public:Include_setting_side" doc-side-customer="active" />
             <div id="doc-center">
                <div class="content-panel">
                    <div class="content-panel-header" id="filterHeaderTabContainer">
                        <include file="en_us:Public:Include_customer_tab" booking-tab-index="btn-primary" />
                    </div>
                </div>
                <div class="header-box">
                    <div class="content-panel-operation">
                        <!--<a class="btn-link" href="/Home/Customer/exportCustomerList?hotel={$currentHotel}&start={$startDate}&end={$endDate}&keys=''">Export the table</a>-->
                        <a class="btn-link" href="javascript:void(0);" data-toggle="modal" data-target="#derivedFormModal">Export the table</a>
                    </div>
                    <div class="guest">&nbsp;<span class="guest-num text-accent"></span>&nbsp;Customer</div>
                    <div class="border-box" id="datePickerContainer">
                        <div class="row">
                            <div class="col-without-padding">
                                <div id="datePicker"><span class="iconfont icon-calendar"></span>&nbsp;<span class="start">{$startDate}</span>&nbsp;~&nbsp;<span class="end">{$endDate}</span></div>
                                <input id="datePickerInput" value="">
                            </div>
                        </div>
                    </div>
                    <div class="border-box">
                        <div class="row">
                            <input id="filterMobile" class="form-control" type="text" autocomplete="off" placeholder="Phone number/Name" maxlength="11" value="" />
                        </div>
                    </div> 
                    <div class="btn-sm btn-accent btn-raised" id="filterSearch">Search</div>
                    <div style="clear: both;"></div>
                </div>
                <div class="content-panel" id="filterResult">
                    <include file="en_us:Public:Include_content_loading" loading-container-id="loading" />
                    <div class="content-panel-body">
                        <table class="table content-panel-table vertical-margin">
                            <thead>
                                <tr>
                                    <th>Name</th>
                                    <th>Phone number</th>
                                    <th>ID card</th>
                                    <th>C/I time</th>
                                    <th>The C/I time</th>
                                    <th>C/I times</th>
                                    <th>Total spending</th>
                                    <th>Operating</th>
                                </tr>
                            </thead>
                            <tbody id="customerListBody">
                            </tbody>
                        </table>
                        <div id="customerListBodyEmpty" class="typo-text-black-light typo-subhead">Did not find the guests to meet the conditions of the information</div>
                    </div>
                    <div id="customerListPage" class="content-panel-footer hidden">
                        <div class="pull-right">
                            <ul class="pagination pagination-sm"></ul>
                        </div>
                        <div class="pull-right content-panel-pagination-info">
                            There are &nbsp;<span class="text-accent page-total"></span>&nbsp;Records，total page:&nbsp;<span class="text-accent page-count"></span>
                        </div>
                    </div>
                </div>	
            </div>
            <!--end of doc-center-->
        </div>
        <!--end of doc body-->
    </div>        
    <div class="modal fade" id="derivedFormModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="btn close" data-dismiss="modal"><span>&times;</span></button>
                    <h4 class="modal-title">Export id information</h4>
                </div>
                <div class="modal-body">
                    <h5>Export the guest information date range:</h5>
                    <div class="date-content">
                        <input type="text" value="" id="dpd1">
                        <div class="divider-line">----</div>
                        <input type="text" value="" id="dpd2">                      
                    </div>
                    <div class="clause-content">
                    	<p>Terms of use:</p>
                        <p>1. The United States has the information encryption storage, not cause information leakage.</p>
                        <p>2. For export after problems such as information leakage caused by the irresponsible.</p>
                        <p>3. The data only can be used as reported to the public security system is used, export format is as follows:</p>
                    </div>
                    <div class="img-content">
                    	<img src="/Public/dist/Home/PublicPage/image/form_en.png"/>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="checkbox-content">
                        <input type="checkbox" name="" id="derivedCheckout" value=""/ checked="checked">
                    	Agree to the terms
                    </div>
                    <button type="button" class="btn-primary btn-raised ulite-js-btn ulite-js-ripple-effect leading-out submitForm">Export</button>
                </div>
            </div>
        </div>
   </div>
    <!--end of doc-->
    <!--js要用到的模板-->
    <script type="text/html" id="templatePage">
        <li>
            <a href="javascript:void(0);"></a>
        </li>
    </script>
    <script type="text/html" id="templateCustomer">
        <tr>
            <td class="col-xs-1">
                <div class="customer-name"></div>
            </td>
            <td class="col-xs-1">
                <div class="customer-mobile"></div>
            </td>
            <td class="col-xs-2">
                <div class="customer-identity"></div>
            </td>
            <td class="col-xs-1">
                <div class="checkIn-time"></div>
            </td>
            <td class="col-xs-1">
                <div class="checkIn-duration"></div>
            </td>
            <td class="col-xs-1">
                <div class="customer-time"></div>
            </td>
            <td class="col-xs-2">
                <div class="customer-total"></div>
            </td>
            <td class="col-xs-1">
                <div class="btn-link customer-details">CustomerDetail</div>
            </td>
        </tr>
    </script>
    <!--身份认证模态框-->
    <include file="en_us:Public:Include_authentication_modal" />
	
</block>
<block name="extendFootJs">
    <script type="text/javascript" src="/Public/dist/Home/common_control.js?rev=d2d95b4bdc49c83470f104e88d8458fd"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/moment.js/2.9.0/moment.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/bootstrap-daterangepicker/daterangepicker.js"></script>
    <script type="text/javascript" src="__PUBLIC__/jslib/datepicker/js/foundation-datepicker.js"></script>
    <script type="text/javascript" src="/Public/dist/Home/CustomerPage/index.js?rev=461cd76c2ca5cab31c0a8a9552c5a2329"></script>
</block>
